const STORAGE_KEY = 'music_player_'

export const storage = {
  get(key: string) {
    const data = localStorage.getItem(STORAGE_KEY + key)
    return data ? JSON.parse(data) : null
  },
  
  set(key: string, value: any) {
    localStorage.setItem(STORAGE_KEY + key, JSON.stringify(value))
  },
  
  remove(key: string) {
    localStorage.removeItem(STORAGE_KEY + key)
  }
} 